﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Controls
{
    public partial class UserControl1: UserControl
    {
        public UserControl1()
        {
            InitializeComponent();
        }
        //站点序号
        private int _titleNum;
        public int TitleNum
        {
            get { return _titleNum; }
            set { this.ZDnumber.Text = value + "号站点"; _titleNum = value; }
        }
        //温度显示
        private double _temperature;
        public double Temperature
        {
            get { return _temperature; }
            set { if(value < 0 ||value>100) MessageBox.Show("温度需要在0-100之间");
            else  this.ucThermometer1.Value = (decimal)value;this.tep.Text = value.ToString(); _temperature = value;
            }
        }
        //适度
     
        private double _sd;
        public double Sd
        {
            get { return _sd; }
            set { this.sd.Text = value.ToString();this.ucProcessWave1.Value = (int)value; _sd = value; }
        }

    }
}
